package com.tengfei.broadcastreceiverdemo.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

/**
 * 创建一个类去继承广播接收者
 */

public class BootCompleteReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d("poweron", "开机完成");
        Toast.makeText(context, "接收到开机广播", Toast.LENGTH_SHORT).show();
    }
}
